﻿using System;
using System.Linq;
using System.Linq.Expressions;

namespace EBE.COM.Interfaces
{
  public interface IRepository<T> where T : class, IEntity
  {
    IQueryable<T> FindAll();
    IQueryable<T> Find(Expression<Func<T, bool>> predicate);
    T FindById(int id);
    void Add(T newEntity);
    void Remove(T entity);
    // not sure about this method
    void Update(T entity);
  }
}
